
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">
 <div class="container-fluid am-cf">
                <div class="row">
                   <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li class="am-active">设置</li>
						  <li class="am-active">疾病</li>
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
  </div>
       <div class="row-content am-cf">
                <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-fl"><i class="iask-icon-jibing iconfont sidebar-nav-link-logo"></i>疾病</div>
                                <div class="widget-function am-fr">
                                    <a href="${Domain}my/main/diseaseadd?url=${url}" class="am-icon-plus"    data-am-popover="{theme: 'success sm',content: '新增疾病', trigger: 'hover focus'}"></a>
                                </div>

                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                   
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                   
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                	
                                </div>

                                <div class="am-u-sm-12">
                                
                                
                                
                                <div class="am-scrollable-horizontal">
                                
                                    <table width="100%" class="<#include "../common/table-class.ftl">"  >
                                        <thead>
                                            <tr>
                                                <th width="80px">编号</th>
                                                <th>名称</th>
                                               <th>方案</th>
                                               <!--
                                               
                                               <th>治愈率</th>
                                                <th>传染性 </th>
                                                -->
                                                <th>治疗周期 </th>
                                                <th>随访周期 </th>
                                                 <!--
                                                <th>多发人群  </th>
                                                <th>性别  </th>
                                                -->
                                              <th width="120px">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#list page.list as item>
                                            <tr >
                                                 <td>${item.id}</td>
                                                <td>${item.name}</td>  
                                               
                                                <td>${item.sname}</td>  <!--
                                                <td>${item.curerate}%</td> 
                                                <td>
                                               		 <#switch item.infectivity>
										           <#case 0> <span class="am-text-default">未知</span> <#break>
										           <#case 1><span class="am-text-success">否</span><#break>
										           <#case 2><span class="am-text-default">是</span><#break>
										           <#default><span class="am-text-danger">未知</span>
										        	</#switch> 
													</td>    -->
                                                <td>
                                                <#if item.period gte 365>
                                                ${(item.period/365)?string("0.#")} 年
                                                <#elseif item.period gte 30>
                                                ${(item.period/30)?string("0.#")} 月
												<#else>
                                                ${item.period}天
                                                </#if>
													</td> 
                                                <td>
                                                <#if item.cycle gte 365>
                                                ${(item.cycle/365)?string("0.#")} 年
                                                <#elseif item.period gte 30>
                                                ${(item.cycle/30)?string("0.#")} 月
												<#else>
                                                ${item.cycle}天
                                                </#if>
												 </td> 
 												<!--
                                                <td>${item.population}</td> 
                                                <td><#switch item.sex>
										           <#case 0> <span class="am-text-default">全部</span> <#break>
										           <#case 1><span class="am-text-success">男</span><#break>
										           <#case 2><span class="am-text-default">女</span><#break>
										           <#default><span class="am-text-danger">未知</span>
										        	</#switch> 
										        	</td>    -->                               
                                                <td>
                                                <div class="tpl-table-black-operation">
                                                        
                                                    
                                              <#if user.role==3||user.role==4>
                                                   
                                                        <a href="${Domain}my/main/diseaseupdate/${item.id}?url=${url}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>

                                                 </#if>
													<a href="${Domain}my/disease/show/${item.id}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-file-o"></i> 查看
                                                        </a>
											</div>
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                    </table>
                                    </div>
                                </div>
                              
                               <#include "../common/page.ftl">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        
 </div>     
 
    
<#include "footer.ftl">